// +----------------------------------------------------------------------
// | 商海经 [ 商海经赋能开发者，助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2021 https://www.商海经.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed 商海经并不是自由软件，未经许可不能去掉商海经相关版权
// +----------------------------------------------------------------------
// | Author: 商海经 Team <admin@商海经.com>
// +----------------------------------------------------------------------
import BasicLayout from '@/layouts/basic-layout';
import Setting from "@/setting";
const pre = 'finance_';
export default {
    path: `${Setting.roterPre}/finance`,
    name: 'finance',
    header: 'finance',
    meta: {
        // 授权标识
        auth: ['admin-finance']
    },
    // redirect: {
    //     name: `${pre}cashApply`
    // },
    component: BasicLayout,
    children: [
        {
            path: 'user_extract/index',
            name: `${pre}cashApply`,
            meta: {
                auth: ['finance-user_extract'],
                title: '提现申请'
            },
            component: () => import('@/pages/finance/userExtract/index')
        },
		
		{
		    path: 'user_extract/index_caigou',
		    name: `${pre}cashApply`,
		    meta: {
		        auth: ['finance-user_extract'],
		        title: '提现申请'
		    },
		    component: () => import('@/pages/finance/userExtract/index_caigou')
		},
		
        {
            path: 'user_recharge/index',
            name: `${pre}recharge`,
            meta: {
                auth: ['finance-user-recharge'],
                title: '充值记录'
            },
            component: () => import('@/pages/finance/financialRecords/recharge')
        },
        {
            path: 'finance/bill',
            name: `${pre}bill`,
            meta: {
                auth: ['finance-finance-bill'],
                title: '资金记录'
            },
            component: () => import('@/pages/finance/financialRecords/bill')
        },
        {
            path: 'finance/commission',
            name: `${pre}commissionRecord`,
            meta: {
                auth: ['finance-finance-commission'],
                title: '用户佣金记录'
            },
            component: () => import('@/pages/finance/commission/index')
        },
		{
		    path: 'finance/commission_caigou',
		    name: `${pre}commissionRecord`,
		    meta: {
		        auth: ['finance-finance-commission'],
		        title: '采购商佣金记录'
		    },
		    component: () => import('@/pages/finance/commission/index_caigou')
		}
    ]
};
